#ifndef SETWIFIPAGE_H
#define SETWIFIPAGE_H

#include <QWidget>
#include "wificontroller.h"
#include "WifiInfoForm.h"
#include "LoadingForm.h"
#include "WifiKeyBoard.h"

namespace Ui
{
    class SetWifiPage;
}

class SetWifiPage : public QWidget
{
    Q_OBJECT

public:

    explicit SetWifiPage(QWidget *parent = 0);
    ~SetWifiPage(void);

private slots:

    void on_button_back_clicked(void);                                  // button_back点击事件
    void on_wifiInfoRefresh(QStringList wifiInfo);
    void on_request_connect_wifi( const QModelIndex & index);
    void on_password_inputed(QString psw);
signals:

    void signal_backDefaultPage(void);                                  // back信号

private:
    Ui::SetWifiPage *ui;
    WifiInfoForm *m_wifiInfoForm;
    WifiController *m_wifiController;
    LoadingForm *m_loadingForm;
    WifiKeyBoard *m_keyBoard;

    QString m_curESSID;
    bool isConnected;
};

#endif // SETWIFIPAGE_H
